package com.chub.study.modules.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chub.study.modules.dto.CityDto;
import com.chub.study.modules.entity.TCity;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 行政区划表 服务类
 * </p>
 *
 * @author chub
 * @since 2021-08-26
 */

public interface TCityService extends IService<TCity> {

    List<TCity> queryCityByParentId(@RequestParam String id);

    List<TCity> queryCityList(@RequestParam Map<String, Object> map);

    List<TCity> queryCityInfo(@RequestParam String id);

    List<TCity> queryCityListByMap(Map<String, Object> map);

    List<TCity> queryCityListByMapRespBeanList(Map<String, Object> map);

    List<TCity> queryCityListByBean(TCity city);

    Map<Integer, TCity> queryCityInfoRespMap(String id);

    List<Map<String, Object>> queryCityInfoRespMap1(String id);

    List<Arrays> queryCityInfoRespArray(String id);

    List<String> queryCityInfoRespArrString(String id);

    Map<Integer, TCity> queryCityInfoAsMap(@RequestParam String id);

    List<TCity> queryCityInfoByList(List<String> list);

    List<TCity> queryCityInfoByArray(String[] cityIds);

    List<TCity> queryCityInfoByUptTime(TCity tCity);

    IPage<Map<String, Object>> queryByPage1(IPage<Map<String, Object>> page, Map<String, Object> forQuery);

    CityDto saveCityList(CityDto dto);

    List<TCity> queryCityInfoByMapKeyValue(@RequestParam Map map);
    List<TCity> queryCityInfoByMapKey(@RequestParam Map map);
    List<TCity> queryCityInfoByMapValue(@RequestParam Map map);

}
